package com.anin.demoipastrict;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@ServletComponentScan(basePackages = "com.anin.demoipastrict")
@SpringBootApplication
public class DemoIpAstrictApplication {

    @GetMapping("/hello")
    public String hello(){
        return "hello";
    }

    public static void main(String[] args) {
        SpringApplication.run(DemoIpAstrictApplication.class, args);
        System.out.println("suc");
    }

}
